<?php
namespace Mobile\Model;
use Think\Model;
class OrderModel extends Model{

	public function getOrderInfo($condition,$field='*'){
		return $this->where($condition)->field($field)->find();
	}

	public function addOrder($data){
		return $this->data($data)->add();
	}

	public function deleteOrder($condition){
		return $this->where($condition)->delete();
	}
}